package com.shixun.milktea.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shixun.milktea.entity.Consumer;
import com.baomidou.mybatisplus.extension.service.IService;

import com.shixun.milktea.entity.Manager;
import com.shixun.milktea.entity.Mt;
import com.shixun.milktea.vo.PageVo;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zrs
 * @since 2022-06-07
 */
public interface ConsumerService extends IService<Consumer> {
    /**
     * 分页查询
     * @param pageVo
     * @return
     * @throws Exception
     */
    Page<Consumer> selectPage(PageVo pageVo)throws Exception;

    /**
     * 根据用户电话模糊查询
     * @param pageVo
     * @param consumerTelephone
     * @return
     * @throws Exception
     */
    Page<Consumer> MtQueryList(PageVo pageVo, String consumerTelephone)throws Exception;
    //新增
    int register(Consumer consumer)throws Exception;
    Consumer loadUserByUsername(String consumerNikename,String consumerPassword) throws Exception;
}
